import request from '../utils/request'

const api_name = `http://localhost:9001/admin/addrdict`

export default {


    //根据id查询其子数据
    findAddrDictById(id){
        return request({
            method:"get",
            url: `${api_name}/findAddrDictById/${id}`
        })
    },

    //获取所有的区域名称
    getDistrictNameList(id){
        return request({
            method:'get',
            url:`${api_name}/getDistrictNameList/${id}`
        })
    },

    //根据id获取区域名称
    getDistrictName(id){
        return request({
            method:'get',
            url:`${api_name}/getDistrictName/${id}`
        })
    },

    //获取所有的dict
    getDicts(){
        return request({
            method:"get",
            url:`${api_name}/getDicts`
        })
    }

}
